package com.ds.event;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    /**
     * 用户id
     */
    @NotNull
    private Integer id;

    /**
     * 用户名
     */

    @NotEmpty
    private String name;

    /**
     * 地址
     */
    @NotEmpty
    private String address;


}

